gtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 26 Nov 2013 15:04:45 +0000 (15:04 +0000)
committerPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 9 Mar 2015 13:41:37 +0000 (13:41 +0000)
commitaf36220bca74837cefab046a6435f2b6743c4569
treec9a3f625d6370ebd9b53699787e8a59951ced3e1
parent8e3b49969905182c903dc62f0f6e6debefefe973
gtkprintcontext: Fix several potential g_object_[un]ref(NULL) calls

The page_setup of a GtkPrintContext or GtkPrintUnixDialog is nullable,
so all reference count changes to it have to be guarded against NULL
values.

Found by scan-build.

https://bugzilla.gnome.org/show_bug.cgi?id=712760
gtk/gtkprintcontext.c
gtk/gtkprintunixdialog.c